class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}
/*		
		"/books"(controller:"books"){
			action= [GET: 'restList', POST: 'restSave' ]
		}
		
		"/books/$id"(controller:"books"){
			action = [GET: 'restShow', PUT: 'restUpdate', DELETE: 'restDelete']
		}
		
		"/user"(controller:"user")
			action=[GET: "restList", POST:"restSave"]
			
		"user/$id(controller:"user")
			action=[GET:"restShow", PUT: "restUpdate", DELETE: 'restDelete]
			
		
		
		
*/
		// changed to use the bookrequest index method page for the start page.
        "/"(view:"/index", controller:"BookRequest", action:"siteIndex")
		
		"500"(view:'/error')
	}
}
